package com.xhs.main.service.scgl.impl;

import com.xhs.main.dao.rsgl.ScglWzxqjhDao;
import com.xhs.main.entity.scgl.ScglWzxqjh;
import com.xhs.main.service.scgl.ScglWzxqjhService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ScglWzxqjhServiceImpl implements ScglWzxqjhService {
    @Autowired
    ScglWzxqjhDao scglWzxqjhDao;

    @Override
    public void scgl_scglWzxqjh_insert(ScglWzxqjh scglWzxqjh) {
        scglWzxqjhDao.scgl_scglWzxqjh_insert(scglWzxqjh);
    }

    @Override
    public List<ScglWzxqjh> scgl_scglWzxqjh_selectAll() {
        return scglWzxqjhDao.scgl_scglWzxqjh_selectAll();
    }

    @Override
    public List<ScglWzxqjh> scgl_Wzxqjh_selectAll_bylimit(Integer index, Integer pageNum) {
        Integer index01=(index-1)*pageNum;

        return scglWzxqjhDao.scgl_Wzxqjh_selectAll_bylimit(index01,pageNum);

    }

    @Override
    public List<ScglWzxqjh> scgl_Wzxqjh_LikeselectAll_bylimit(String thisscglScjhDocumentnum, String thisscglScjhPersonincharge, String thisscgl_wzxqjh_mpp_id, Integer scglScjhStatus, Integer scglScjhBillsstatus, Integer index, Integer pageNum) {
        Integer index01=(index-1)*pageNum;

        return scglWzxqjhDao.scgl_Wzxqjh_LikeselectAll_bylimit(thisscglScjhDocumentnum,thisscglScjhPersonincharge,thisscgl_wzxqjh_mpp_id,scglScjhStatus,scglScjhBillsstatus,index01,pageNum);
    }

    @Override
    public List<ScglWzxqjh> scgl_Wzxqjh_LikeselectAll(String thisscglScjhDocumentnum, String thisscglScjhPersonincharge, String thisscgl_wzxqjh_mpp_id, Integer scglScjhStatus, Integer scglScjhBillsstatus) {
        return scglWzxqjhDao.scgl_Wzxqjh_LikeselectAll(thisscglScjhDocumentnum,thisscglScjhPersonincharge,thisscgl_wzxqjh_mpp_id,scglScjhStatus,scglScjhBillsstatus);
    }

    @Override
    public ScglWzxqjh scgl_scglWzxqjh_selectOne(String scglWzxqjhDocumentnum) {
        return scglWzxqjhDao.scgl_scglWzxqjh_selectOne(scglWzxqjhDocumentnum);
    }

    @Override
    public void scgl_scglWzxqjh_updateStatus(String thisScglScjhConfirmpeople, String thisScglScjhConfirmdate, Integer thisScglScjhBillsstatus, Integer thisScglScjhStatus, String thisscglScjhDocumentnum, String thisscglScjhRemarks) {
        scglWzxqjhDao.scgl_scglWzxqjh_updateStatus(thisScglScjhConfirmpeople,thisScglScjhConfirmdate,thisScglScjhBillsstatus,thisScglScjhStatus,thisscglScjhDocumentnum,thisscglScjhRemarks);
    }

    @Override
    public void scgl_scglWzxqjh_updateLast(String scgl_scjh_statementPeople, String scgl_scjh_dateofOrder, String scgl_scjh_lastUpdatePeople, String scgl_scjh_lastUpdateDate, String thisscglScjhDocumentnum) {
        scglWzxqjhDao.scgl_scglWzxqjh_updateLast(scgl_scjh_statementPeople,scgl_scjh_dateofOrder,scgl_scjh_lastUpdatePeople,scgl_scjh_lastUpdateDate,thisscglScjhDocumentnum);
    }

    @Override
    public ScglWzxqjh scgl_scglWzxqjh_selectOne_byshengchanjihua(String scglWzxqjhDocumentnum) {
        return scglWzxqjhDao.scgl_scglWzxqjh_selectOne_byshengchanjihua(scglWzxqjhDocumentnum);
    }
}
